<?php
session_start();
require_once 'mysql.php';

//check data semuanya


//isi ke database
$con=mysql_connect('127.0.0.1',$username,$password) or die(mysql_error());
mysql_select_db($database,$con) or die(mysql_error());

//hapus data yang tersimpan
$_SESSION = array();
if (ini_get("session.use_cookies")) {
    $params = session_get_cookie_params();
    setcookie(session_name(), '', time() - 42000,
        $params["path"], $params["domain"],
        $params["secure"], $params["httponly"]
    );
}
session_destroy();
?>

